package top.hepingan.java.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 设备使用表
 * </p>
 *
 * @author author
 * @since 2025-09-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("device_usage")

public class DeviceUsage implements Serializable {

    private static final long serialVersionUID = 1L;

   // @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

   // @ApiModelProperty(value = "设备ID")
    @TableField("device_id")
    private String deviceId;

    //@ApiModelProperty(value = "使用次数")
    @TableField("usage_count")
    private Integer usageCount;

   // @ApiModelProperty(value = "是否会员 0=否 1=是")
    @TableField("is_member")
    private Boolean isMember;

   // @ApiModelProperty(value = "是否试用 0=否 1=是")
    @TableField("is_trial")
    private Boolean isTrial;

   // @ApiModelProperty(value = "会员开通时间")
    @TableField("member_start_time")
    private LocalDateTime memberStartTime;

  ///  @ApiModelProperty(value = "会员到期时间")
    @TableField("member_end_time")

    private LocalDateTime memberEndTime;

  ///  @ApiModelProperty(value = "IP地址")
    @TableField("ip")
    private String ip;


}
